using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class FAQs : System.Web.UI.UserControl
{
    processFAQ pFAQ;
    protected void Page_Load(object sender, EventArgs e)
    {
        pFAQ = new processFAQ();
        dtlFAQ.DataSource = pFAQ.getFAQ();
        dtlFAQ.DataBind();
    }
    protected void dtlFAQ_ItemDataBound(object sender, DataListItemEventArgs e)
    {
        Label lblFAQName = (Label)e.Item.FindControl("lblFAQName");
        Label lblFAQDetail = (Label)e.Item.FindControl("lblFAQDetail");
        DataRowView row = (DataRowView)e.Item.DataItem;
        lblFAQName.Text = row["FAQName"].ToString();
        lblFAQDetail.Text = row["FAQDetail"].ToString();
    }
}

